<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>菜单修改</title>
</head>
<body>
	<form action = "${pageContext.request.contextPath}/Back/menu/MenuUpdated">
		<table class="table" border="2px" cellspacing="0" style="width: 100%;">
			<input type="hidden" name="id" value="${menu.id }" />
			<tr><td style="text-align:center;width:30%">菜品名称：</td>
			<td><input type="text"name="menuname" value="${menu.menuname }"/></td></tr>	
						
			<tr><td style="text-align:center;width:30%">原料：</td>
			<td><input type="text"name="material" value="${menu.material }"/></td></tr>
			
			<tr><td style="text-align:center;width:30%">菜品类别：</td>
					<td >
						<select name="typeid">
							<c:forEach items="${sessionScope.typeList }" var="t">
								<option value="${t.id }">${t.typename }</option>
							</c:forEach>
						</select>
					</td>
			</tr>
			
			<tr><td style="text-align:center;width:30%">单价：</td>
			<td><input type="text"name="price" value="${menu.price }"/></td></tr>	
						
			<tr><td style="text-align:center;width:30%">会员单价：</td>
			<td><input type="text"name="unit_price" value="${menu.unit_price }"/></td></tr>
			
			<tr><td style="text-align:center;width:30%">说明：</td>
			<td><input type="text"name="state" value="${menu.state}"/></td></tr>
			<tr><td style="text-align:center;width:30%">图片：</td>
			<td><input type="file"name="picture" value="${menu.picture }"/></td></tr>				
	
			<tr style="text-align: center;" ><td colspan="2"><button type="submit">修改</button></td></tr>
		</table>
	</form>
	
</body>
</html>